using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Framework
{
    public interface IBaseNet
    {
        /// <summary>
        /// 请求连接
        /// </summary>
        /// <param name="ip"></param>
        /// <param name="port"></param>
        public void ConnectAsync(string ip, int port);

        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="data"></param>
        public void SendMsg(byte[] data);

        /// <summary>
        /// 直接销毁（未连接成功时使用）
        /// </summary>
        public void Destroy();
    }
}